package com.njtoyo.taxi.admin.rest.controller.open;

import com.njtoyo.taxi.admin.aop.PassToken;
import com.njtoyo.taxi.admin.rest.wrapper.open.taxi.TaxiVersionWrapper;
import com.njtoyo.taxi.admin.service.business.TaxiService;
import com.taxi.entity.common.RestResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/open/taxi")
public class TaxiController {

    @Autowired
    private TaxiService taxiService;

    @PostMapping("/version")
    @PassToken
    public RestResult getTaxiDeviceVersion(@RequestBody TaxiVersionWrapper taxiVersionWrapper) {
        return taxiService.getTaxiDeviceVersion(taxiVersionWrapper);
    }


}
